@model string
@using NITASA.ViewModels
@{
    CL_WidgetOption wOption = NITASA.Helpers.Functions.ParseJson<CL_WidgetOption>(Model);
    List<NITASA.ViewModels.CL_Label> Labels = NITASA.Helpers.Functions.GetLabels(wOption.Count);
}


@if (Labels.Count() > 0)
{
    <div class="cleaner_h40"></div>
    <h4>@wOption.Title</h4>
    <ul class="templatemo_list">
        @foreach (var item in Labels)
        {
            <li><a href="@(string.IsNullOrEmpty(item.URL) ? "#" : "/Label/"+item.URL)">@item.Name</a></li>
        }
    </ul>
}